package com.hsf.cloudweb.enums;

public enum MessageEnum {
    Success("0000","请求成功"),
    UnKnowError("0001","未知错误"),
    UnKnowMethodNameError("0001","未知的方法名"),
    RequestFormError("0003","请求方式错误"),
    IllegalParamError("0004","参数非法，如request parameter (key) is missing"),
    TimeStampTimeoutError("0005","时间戳过期"),
    SignError("0006","签名错误"),
    RepeatSubmitError("0007","重复提交"),
    FrequentOperationError("0008","操作频繁"),
    XmlFormatError("0011","xml格式不对"),
    UnSupportGetRequestError("0012","不支持get请求，请使用post"),
    RequestUrlFormatError("0013","请求url格式不正确，正确格式请参考http://www.qingmayun.com/restjieshao.html"),
    TimestampOutOfRangeError("0015","时间戳超出有效时间范围"),
    RequestJsonFormatError("0016","请求json格式不对"),
    DataBaseOperationError("0017","数据库操作失败"),
    ParamIsNullError("0018","参数为空"),
    OrderHasExistError("0019","订单已存在"),
    UserAccountNotExistError("0020","用户不存在"),
    SubAccountMoneyInsufficientError("0021","子账号余额不足"),
    FrequentlyOperationError("0022","操作频繁"),





    ;

    private String statusCode;

    private String description;

    MessageEnum(String statusCode, String description) {
        this.statusCode = statusCode;
        this.description = description;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public String getDescription() {
        return description;
    }
}
